<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>地址 - 娃娃Get抓娃娃</title>


    <link rel="stylesheet" href="assets/css/bootstrap.min.css" />
    <link rel="stylesheet" href="assets/js/swiper-4.4.2/swiper.min.css" />
    <link rel="stylesheet" href="assets/css/sweetalert.min.css" />
    <link rel="stylesheet" href="assets/css/main.css" />

    <script src="assets/js/jquery.slim.min.js"></script>
    <script src="assets/js/popper.min.js"></script>
    <script src="assets/js/bootstrap.min.js"></script>
    <script src="assets/js/swiper-4.4.2/swiper.min.js"></script>
    <script src="assets/js/sweetalert.min.js"></script>
    <script src="assets/js/common.js"></script>




</head>
<body class="main-color">

<!--start address item-->
<div class="container flex confirm-address-wrapper address-item" >
    <div class="address-icon"></div>
    <div class="address-style-body gray">
        <div class="consume flex">
            <p>收货人: <span>XXXX</span></p>
            <p>12345678910</p>
        </div>
        <div class="address">
            收货地址: <span>广东省广州市天河区棠下街道棠德南路288号天盈创意园1060室</span>
        </div>
        <div class="edit-trash">
            <a href="address-edit.html" class="main-icon icon-edit"></a>
            <a href="javascript:;" class="main-icon icon-trash"></a>
        </div>
    </div>
</div>
<!--end address item-->

<!--start address item-->
<div class="container flex confirm-address-wrapper address-item" >
    <div class="address-icon"></div>
    <div class="address-style-body gray">
        <div class="consume flex">
            <p>收货人: <span>XXXX</span></p>
            <p>12345678910</p>
        </div>
        <div class="address">
            收货地址: <span>广东省广州市天河区棠下街道棠德南路288号天盈创意园1060室</span>
        </div>
        <div class="edit-trash">
            <a href="address-edit.html" class="main-icon icon-edit"></a>
            <a href="javascript:;" class="main-icon icon-trash"></a>
        </div>
    </div>
</div>
<!--end address item-->


<!--start address item-->
<div class="container flex confirm-address-wrapper address-item" >
    <div class="address-icon"></div>
    <div class="address-style-body gray">
        <div class="consume flex">
            <p>收货人: <span>XXXX</span></p>
            <p>12345678910</p>
        </div>
        <div class="address">
            收货地址: <span>广东省广州市天河区棠下街道棠德南路288号天盈创意园1060室</span>
        </div>
        <div class="edit-trash">
            <a href="address-edit.html" class="main-icon icon-edit"></a>
            <a href="javascript:;" class="main-icon icon-trash"></a>
        </div>
    </div>
</div>
<!--end address item-->


<div onclick="javascript:location.href='address-edit.html'" class="address-add-btn">添加</div>

</body>


<script>
    $('.icon-trash').click(function(){
        if($('.address-item').length==1) {
            swal('','最后一个地址不能删除','error')
            return false;
        }
        $(this).parents('.address-item').remove();
        swal('','删除地址成功','success')
    })


</script>














</html>